<%-- 
    Document   : lookDate
    Created on : 2017-2-22, 20:58:26
    Author     : DELL
--%>

<%@page import="dateManager.LookDateBean"%>
<%@page import="friendManager.LookFriendBean"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>日程管理——查看日程页面</title>
    </head>
    <body>
       <hr noshade>
        <div align="center">
            <table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
                <tr>
                    <td width="25%">
                        <a href="http://localhost:8081/PersonInforMSys/dateManager/addDate.jsp">增加日程</a>
                    </td>
                    <td width="25%">
                        查看日程
                    </td> 
                    <td width="25%">
                        <a href="http://localhost:8081/PersonInforMSys/dateManager/updateDate.jsp">修改日程</a>
                    </td>     
                    <td width="25%">
                        <a href="http://localhost:8081/PersonInforMSys/dateManager/deleteDate.jsp">删除日程</a>
                    </td>
                </tr>
            </table>
        </div>

        <hr noshade>
        <br><br>
    <table  width="60%" align="center" border="2" cellspacing="0" cellpadding="0" bgcolor="gray">

        <tr align="center">
            <th height="30">日程时间</th>
            <th height="30">日程内容</th>
      
        </tr>
        <%
            ArrayList dateList = (ArrayList) session.getAttribute("dateList");
            if (dateList == null || dateList.size() == 0) {


        %>
        <div align="center">

            <h1>您还没有任何日程！</h1>


        </div>
        <%} else {
            for (int i = dateList.size() - 1; i >= 0; i--) {

                LookDateBean ddBean = (LookDateBean) dateList.get(i);


        %>


        <tr>
            <td height="30" align="center"><%=ddBean.getDate()%></th>
                  <td height="30"  align="center"><%=ddBean.getThing()%></th>
                      

        </tr>
        <%                }

            }
        %>


    </table>
    </body>
</html>
